package com.chenfan.magic.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description:
 * @author: weishili
 * @date: 20/7/12
 * @version: V1.0
 */
@Data
@ApiModel("权限-出参")
public class SPrivilegeRes {

    @ApiModelProperty("权限id")
    private Long privilegeId;

    @ApiModelProperty("上级code，顶级为 -1")
    private String parentCode;

    @ApiModelProperty("应用id")
    private Long applicationId;

    @ApiModelProperty("应用名称")
    private String applicationName;

    @ApiModelProperty("模块名称")
    private String moduleName;

    @ApiModelProperty("权限code")
    private String privilegeCode;

    @ApiModelProperty("权限名中文")
    private String privilegeTitle;

    @ApiModelProperty("权限类型 1：菜单 2 子菜单（页面）3按钮")
    private Integer privilegeType;

    @ApiModelProperty("配置数据权限 0：否 1：是")
    private Integer isDataPrivilege;

    @ApiModelProperty("是否服务品牌 0：否 1：是")
    private Integer isServiceBrand;

    @ApiModelProperty("排序")
    private Integer orderNum;

    @ApiModelProperty("按钮标识 add/search/edit/delete")
    private String btnKey;

    @ApiModelProperty("路由缓存 0：否 1：是")
    private Integer cache;

    @ApiModelProperty("路由显示 0：否 1：是")
    private Integer route;

    @ApiModelProperty("vue path")
    private String path;

    @ApiModelProperty("redirect")
    private String redirect;

    @ApiModelProperty("组件名称")
    private String component;

    @ApiModelProperty("权限名英文")
    private String name;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("是否隐藏 0：否 1：是")
    private Integer hidden;

    @ApiModelProperty("是否勾选")
    private Integer checked;

    @ApiModelProperty("子菜单")
    private List<SPrivilegeRes> children;

    @ApiModelProperty("状态 0：正常 1：禁用")
    private Integer status;
}